package com.example.demo.client.vm.sysbasequery;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.ibatis.type.Alias;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户托管
 * @author zhengmf
 * @date 2018.01.11
 */
@ApiModel("用户托管查询")
@Alias("QueryUserTrusteeshipVm")
public class QueryUserTrusteeshipVm extends UserTrusteeshipVm implements Serializable {
    private static final long serialVersionUID = -3234234481773040312L;
    @ApiModelProperty("托管人姓名")
    private String alias;
    @ApiModelProperty("托管人姓名")
    private String trusName;
    @ApiModelProperty("托管记录创建时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date insertTime;
    @ApiModelProperty("是否有权限")
    private Boolean permission;

    public Boolean getPermission() {
        return permission;
    }

    public void setPermission(Boolean permission) {
        this.permission = permission;
    }

    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias;
    }

    public String getTrusName() {
        return trusName;
    }

    public void setTrusName(String trusName) {
        this.trusName = trusName;
    }

    public Date getInsertTime() {
        return insertTime;
    }

    public void setInsertTime(Date insertTime) {
        this.insertTime = insertTime;
    }

    @Override
    public String toString() {
        return "QueryUserTrusteeshipVm{" +
            "alias='" + alias + '\'' +
            ", trusName='" + trusName + '\'' +
            ", insertTime=" + insertTime +
            ", permission=" + permission +
            '}';
    }
}
